<template>
	<view class="video-list">
		<video :id="items.id" :poster="items.img" :src="items.url" :enable-play-gesture="true" initial-time duration
		 show-fullscreen-btn :custom-cache="false" @error="voideErr"></video>
	</view>
</template>

<script>
	export default {
		props: {
			items: {
				type: Object,
				default: null
			},
			indexs: {
				type: Number,
				default: 0
			}
		},
		methods: {
			voideErr(err) {
				console.error(err);
			},
		}
	}
</script>

<style lang="scss">
	.video-list {
		@include flexCenterCenter;
		margin-bottom: 20rpx;
	}
</style>
